<template>
	<view class="item" :id="index % 2 == 0 ? 'margin14' : ''">
		<view class="avatar">
			<image :src="item.avatar" mode="aspectFill"></image>
			<view class="address flex_r_around">
				<text class="hidden">{{ item.content.province || '' }}{{ item.content.city || '' }}</text>
			</view>
			<view class="tag">
				<text>全身理疗/上门按摩spa</text>
			</view>
		</view>
		
		<view class="info flex_r_between">
			<view class="left flex_center">
				<text class="name hidden">{{ item.nickname || '' }}</text>
				<view class="sex">
					<!-- 男 -->
					<view class="icon" v-if="item.gender == 1">
						<u-icon name="man" size="24rpx" color="#10AFFF" bold></u-icon>
					</view>
					
					<!-- 女 -->
					<view class="icon" v-else>
						<u-icon name="woman" size="24rpx" color="#FD2A53" bold></u-icon>
					</view>
				</view>
				<view class="age">{{ item.age || 0 }}</view>
			</view>
			
			<view class="right">{{ item.juli_str || '' }}</view>
		</view>
		
		<view class="sign hidden_2">
			{{ item.introduce || '' }}
		</view>
	</view>
</template>

<script>
	export default {
		name: 'technician',
		props: {
			item: {
				type: Object,
				default: () => {},
			},
			index: {
				type: Number,
				default: 0,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
	
	.item {
		width: 352rpx;
		height: 500rpx;
		background: #FFFFFF;
		border-radius: 24rpx;
		overflow: hidden;
		margin-bottom: 14rpx;
		
		.avatar {
			width: 352rpx;
			height: 352rpx;
			position: relative;
			image {
				width: 352rpx;
				height: 352rpx;
			}
			
			.address {
				height: 40rpx;
				background: rgba(0,0,0,0.4);
				border-radius: 8rpx;
				padding: 0 10rpx;
				position: absolute;
				left: 16rpx;
				top: 16rpx;
				max-width: 316rpx;
				text {
					font-size: 24rpx;
					color: #FFFFFF;
				}
			}
			
			.tag {
				width: 100%;
				background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, #000000 100%);
				position: absolute;
				left: 0;
				bottom: 0;
				padding: 58rpx 16rpx 20rpx;
				
				text {
					font-weight: 500;
					font-size: 24rpx;
					color: #FFFFFF;
					line-height: 34rpx;
				}
			}
		}
		
		.info {
			padding: 16rpx 16rpx 8rpx;
			.left {
				.name {
					max-width: 160rpx;
					font-weight: 500;
					font-size: 28rpx;
					color: #131313;
				}
				.sex {
					margin: 0 4rpx 0 8rpx;
				}
				.age {
					font-weight: 500;
					font-size: 24rpx;
					color: #131313;
				}
			}
			.right {
				font-weight: 500;
				font-size: 24rpx;
				color: #131313;
			}
		}
		
		.sign {
			padding: 0 16rpx;
			font-size: 24rpx;
			color: #666666;
			line-height: 32rpx;
		}
		
	}
	
	#margin14 {
		margin-right: 14rpx;
	}
	
</style>
